﻿using Blog.Entity.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Blog.Entity.Users
{
    public class User : Entity<long>, IHasCreationTime, IHasDeletionTime, IHasModificationTime
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public override long Id { get ; set ; }

        public string NickName { get; set; }

        public string PassWord { get; set; }

        public string RealName { get; set; }

        public string Email { get; set; }

        public string Mobile { get; set; }


        public DateTime? LastModificationTime { get; set; }
        public DateTime? DeletionTime { get ; set ; }
        public DateTime CreatTime { get ; set; }

        public User()
        {
            CreatTime = DateTime.Now;
        }
        
    }

}
